package com.weishu.house.controller;


import com.weishu.house.entity.HouseInfo;
import com.weishu.house.entity.HouseStyle;
import com.weishu.house.service.IHouseInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author gao
 * @since 2021-05-25
 */
@RestController
@RequestMapping("/house-info")
public class HouseInfoController {

    @Autowired
    private IHouseInfoService iHouseInfoService;


    @PostMapping("addd")
    public boolean addd(@RequestBody HouseInfo houseInfo){
        System.out.println("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
        System.out.println(houseInfo);
//        iHouseInfoService.roomInfosava(houseInfo);
        return iHouseInfoService.add(houseInfo);
    }

}
